/*
 * Copyright (C) 2023 xuexiangjys(xuexiangjys@163.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.xuexiang.templateproject.bean;

//import anet.channel.strategy.dispatch.DispatchConstants;
//import java.util.List;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.List;

public final class MatchAction {
    @NotNull
    private final List<ActionEntity> actions;
    private final int courseId;
    @NotNull
    private final String courseName;
    private final int height;
    @NotNull
    private final String imageUrl;
    private final boolean placeHolder;
    private final int subTaskId;
    private final int width;

    public MatchAction(@NotNull String imageUrl, int i2, int i3, int i4, int i5, @NotNull String courseName, @NotNull List<ActionEntity> actions, boolean z) {
        Intrinsics.checkNotNullParameter(imageUrl, "imageUrl");
        Intrinsics.checkNotNullParameter(courseName, "courseName");
        Intrinsics.checkNotNullParameter(actions, "actions");
        this.imageUrl = imageUrl;
        this.width = i2;
        this.height = i3;
        this.courseId = i4;
        this.subTaskId = i5;
        this.courseName = courseName;
        this.actions = actions;
        this.placeHolder = z;
    }

    @NotNull
    public final String component1() {
        return this.imageUrl;
    }

    public final int component2() {
        return this.width;
    }

    public final int component3() {
        return this.height;
    }

    public final int component4() {
        return this.courseId;
    }

    public final int component5() {
        return this.subTaskId;
    }

    @NotNull
    public final String component6() {
        return this.courseName;
    }

    @NotNull
    public final List<ActionEntity> component7() {
        return this.actions;
    }

    public final boolean component8() {
        return this.placeHolder;
    }

    @NotNull
    public final MatchAction copy(@NotNull String imageUrl, int i2, int i3, int i4, int i5, @NotNull String courseName, @NotNull List<ActionEntity> actions, boolean z) {
        Intrinsics.checkNotNullParameter(imageUrl, "imageUrl");
        Intrinsics.checkNotNullParameter(courseName, "courseName");
        Intrinsics.checkNotNullParameter(actions, "actions");
        return new MatchAction(imageUrl, i2, i3, i4, i5, courseName, actions, z);
    }

    public boolean equals(@Nullable Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof MatchAction)) {
            return false;
        }
        MatchAction matchAction = (MatchAction) obj;
        return Intrinsics.areEqual(this.imageUrl, matchAction.imageUrl) && this.width == matchAction.width && this.height == matchAction.height && this.courseId == matchAction.courseId && this.subTaskId == matchAction.subTaskId && Intrinsics.areEqual(this.courseName, matchAction.courseName) && Intrinsics.areEqual(this.actions, matchAction.actions) && this.placeHolder == matchAction.placeHolder;
    }

    @NotNull
    public final List<ActionEntity> getActions() {
        return this.actions;
    }

    public final int getCourseId() {
        return this.courseId;
    }

    @NotNull
    public final String getCourseName() {
        return this.courseName;
    }

    public final int getHeight() {
        return this.height;
    }

    @NotNull
    public final String getImageUrl() {
        return this.imageUrl;
    }

    public final boolean getPlaceHolder() {
        return this.placeHolder;
    }

    public final int getSubTaskId() {
        return this.subTaskId;
    }

    public final int getWidth() {
        return this.width;
    }

    public int hashCode() {
        int hashCode = ((((((((((((this.imageUrl.hashCode() * 31) + this.width) * 31) + this.height) * 31) + this.courseId) * 31) + this.subTaskId) * 31) + this.courseName.hashCode()) * 31) + this.actions.hashCode()) * 31;
        boolean z = this.placeHolder;
        if (z) {
            z = true;
        }
        int i2 = z ? 1 : 0;
        int i3 = z ? 1 : 0;
        int i4 = z ? 1 : 0;
        return hashCode + i2;
    }

    @NotNull
    public String toString() {
        return "MatchAction(imageUrl=" + this.imageUrl + ", width=" + this.width + ", height=" + this.height + ", courseId=" + this.courseId + ", subTaskId=" + this.subTaskId + ", courseName=" + this.courseName + ", actions=" + this.actions + ", placeHolder=" + this.placeHolder + ')';
    }
}
